import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/index.css'
import '@/assets/font/font.css'
import App from './App.vue'
import { setupRouter } from './router/index'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import "./utils/flexible";
import en from 'element-plus/dist/locale/en.mjs';

// 定义特性标志
window.__VUE_PROD_DEVTOOLS__ = false;
window.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = false;

const app = createApp(App);
app.use(ElementPlus, { locale: en })
for (const [iconName, icon] of Object.entries(ElementPlusIconsVue)) {
    app.component(iconName, icon)
  }
setupRouter(app);
app.mount("#app");
